package com.itheima.common;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: zhuan
 * @Desc: 标准结果
 * @Date: 2022-05-11 15:40:59
 */
@AllArgsConstructor
@Data
public class Result implements Serializable {
		/**
		 * 状态码
		 */
		private Integer code;
		/**
		 * 消息提示
		 */
		private String msg;
		/**
		 * 数据结果
		 */
		private Object data;

		public Result(){}

		public Result(Integer code,String msg){
				this.code=code;
				this.msg=msg;
		}

}
